package gui;

import javax.swing.JPanel;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import com.jgoodies.forms.factories.FormFactory;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JComboBox;

public class AppPanelPlot extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3532086094480804100L;
	public static JButton btnPlotCreate = new JButton("Create");
	public static JButton btnPlotDelete = new JButton("Delete");
	public static JButton btnPlotEdit = new JButton("Save");
	public static JScrollPane scrollPlotDesc = new JScrollPane();
	public static JTextArea taPlotDesc = new JTextArea();
	public static JLabel txtPlotFaction = new JLabel("Faction");
	public static JComboBox dropPlotFaction = new JComboBox();
	public static JTextField txtPlotName = new JTextField();
	public static JScrollPane scrollPlotScenes = new JScrollPane();
	public static JLabel lblPlotScenes = new JLabel("Scenes");
	private final JLabel lblPlotName = new JLabel("Plot Name");
	
	
	
	/**
	 * Create the panel.
	 */
	public AppPanelPlot() {
		txtPlotName.setColumns(10);
		setLayout(new FormLayout(new ColumnSpec[] {
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("75px"),
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("150px:grow"),
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("default:grow"),
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("150px:grow"),
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("default:grow"),
				FormFactory.RELATED_GAP_COLSPEC,
				FormFactory.DEFAULT_COLSPEC,},
			new RowSpec[] {
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("default:grow"),
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("max(17dlu;default):grow"),
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,}));
		
		add(lblPlotName, "4, 2, 5, 1");
		add(btnPlotEdit, "2, 4, default, top");
		
		add(txtPlotName, "4, 4, 7, 1, fill, default");
		add(btnPlotDelete, "2, 6");
		
		add(scrollPlotDesc, "4, 6, 7, 5, fill, fill");
		
		scrollPlotDesc.setViewportView(taPlotDesc);
		add(btnPlotCreate, "2, 8");
		
		add(txtPlotFaction, "4, 12, left, default");
		
		add(dropPlotFaction, "4, 14, fill, default");
		
		add(lblPlotScenes, "4, 16");
		
		add(scrollPlotScenes, "4, 18, 5, 1, fill, fill");
	}

}
